const express = require('express')
const app = express()

app.get('/server', (request, response) => {
    response.setHeader('Access-Control-Allow-Origin', '*')
    setTimeout(() => {
        response.send('adnfdasf')
    }, 2000);
})
app.listen(8000, () => {
    console.log('8000服务已经启动')
})